<template>
  <div>
    <div>son2</div>
    <div>{{ $attrs }}</div>
  </div>
</template>
<script>
export default {
  inheritAttrs: false,
  created() {
    console.log('son2', this.$attrs, this.$listeners)
  },
  mounted() {
    this.$emit('method2', '这是son2')
  }
}
</script>
